package com.yunchao.bank.business.data.mapper

import com.yunchao.bank.business.data.model.StackIssueInfoApiModel
import com.yunchao.bank.business.data.model.TeamIssueInfoApiModel
import com.yunchao.bank.business.domain.model.SelectInfoModel

internal fun StackIssueInfoApiModel.toDomainModel() = SelectInfoModel(
    id = sstackCode.orEmpty(),
    name = sstackName.orEmpty()
)

internal fun TeamIssueInfoApiModel.toDomainModel() = SelectInfoModel(
    id = teamId.orEmpty(),
    name = teamName.orEmpty()
)